<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="/pages/system/base.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>科研工作量详情管理</title>
</head>
<body>
	<table id="dg" class="" title="列表" style="width: 700px; height: 300px">
		<thead>
			<tr>
				<th data-options="field:'gonghao',width:80">工号</th>
				<th data-options="field:'realname',width:80">姓名</th>
				<th data-options="field:'business',width:80">职务</th>
				<th data-options="field:'total',width:80">工作量</th>
			</tr>
		</thead>
	</table>

	<div id="toolbar">
			<a href="#" class="easyui-linkbutton back"
			iconCls="icon-back" onclick="exportExcel()" plain="true">excel导出</a>
	</div>

	<script type="text/javascript">
		$(function() {
			loadDataGrid();
		});
		function loadDataGrid(queryConditon) {
			$('#dg').datagrid({
				title : '工作量',
				iconCls : 'icon-ok',
				pageSize : 10,
	            pageList : [ 10, 15, 20 ],
				nowrap : true,
				striped : true,
				collapsible : true,
				toolbar : "#toolbar",
				url : 'scienceWorkController.do?totaldatagrid',
				loadMsg : '数据装载中......',
				singleSelect : false,
				fitColumns : true,
				checkOnSelect : true,
				selectOnCheck : true,
				fit : true,
				remoteSort : false,
				pagination : true,
				rownumbers : true,
				queryParams : queryConditon
			});
		}

		function exportExcel() {
			window.location.href = "scienceWorkController.do?exporttotalExcel";
		}

	</script>

</body>
</html>